package testJdk.throwErr;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName : learn_jdk.throwErr.ThrowErrTest
 * @Description : 类描述
 * Created by cyd on 2021-10-15 16:19:44
 */
@Slf4j
public class ThrowErrTest {

    public static void main(String[] args) {
        int a = 1;
        int b = 0;
        try {
            System.out.println(a / b);
        } catch (Exception e) {
            log.error("error");
            e.printStackTrace();
        }
        System.out.println("ok");

    }
}
